ScanDeviceManager SendPriorityData
Sends a priority data message to a controller. Priority messages are used to send commands to the marking controllers on demand and bypassing the general data stream. Refer Priority Messages section of the SMC Software Reference manual for more information.
The method returns as soon as the message is sent, not when the operation is actually performed on the target.
public void SendPriorityData(string deviceName, string strPriorityMessage, uint uiTimeout) |
Return value
void |
Parameters
string | deviceName | The unique name of the device. |
string | strPriorityMessage | |
uint | uiTimeout |
Exceptions
DeviceNotFoundException | Throws when the device with the given name is not found |
PriorityMessageFailedException | Throws if the Priority message failed to complete |
Example
Copy
string priorityMessage = "< Data type = 'ServiceData' rev = '1.1' > < Msg id = 'Abort' reason = 'Terminate' /> </ Data >";
scanDeviceManager.SendPriorityData(GetselectedDeviceUniqueName(), priorityMessage, 10);